/*
 * @Author: 李家磊
 * @Date: 2021-06-09 09:43:52
 * @LastEditTime: 2022-03-15 15:39:06
 * @LastEditors: 李家磊
 * @Description:
 * @FilePath: /template/config/config.ts
 */
import { defineConfig } from 'umi';
import defaultSettings from './defaultSettings';
import routes from './routes';

export default defineConfig({
  hash: true,
  antd: {},
  dva: {
    hmr: true,
  },
  layout: {
    name: 'uniontech',
    locale: false,
    ...defaultSettings,
  },
  locale: { },
  dynamicImport: {
    loading: '@/components/PageLoading/index',
  },
  targets: {
    ie: 11,
  },
  // umi routes: https://umijs.org/docs/routing
  routes,
  // Theme for antd: https://ant.design/docs/react/customize-theme-cn
  theme: {
    'primary-color': defaultSettings.primaryColor,
  },
  esbuild: {},
  title: false,
  ignoreMomentLocale: true,
  manifest: {
    basePath: '/',
  },
  exportStatic: {},
  define:{
    'process.env.NODE_ENV':process.env.NODE_ENV
  }
});
